From: Kolja Lampe Date: Fri, 20 Jan 2023 07:51:46 +0000 (+0100) Subject: authPrompt: Also replace full-width colon X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=096ef1fa9be3f3e722e30638bd87dcd9a22be871;p=gnome-shell.git authPrompt: Also replace full-width colon It is used instead of the regular colon in some locales, for example Chinese. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5716 Part-of: --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index e48e422fa..3cda93a4f 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -309,7 +309,7 @@ var AuthPrompt = GObject.registerClass({ if (question === 'Password:' || question === 'Password: ') this.setQuestion(_('Password')); else - this.setQuestion(question.replace(/: *$/, '').trim()); + this.setQuestion(question.replace(/[::] *$/, '').trim()); this.updateSensitivity(true); this.emit('prompted');